var config = require("core/config");
var host = config.host;

var community = host + "/community";

var baseUrl = community + "/base";
var messageUrl = community + "/message";
var noticeUrl = community + "/notice";
var joinUrl = community + "/join";
var localnewsUrl = community + "/localnews";
var signsUrl = community + "/sign";
var addrUrl = community + "/addr";
var yellowUrl = community + "/yellow";
var imgMax = 3;

module.exports.url = {
	base : {
		index : baseUrl + "/index",
		create : baseUrl + "/create",
		topList : baseUrl + "/topList",
		myConcern : baseUrl + "/myConcern",
		distancePage : baseUrl + "/distancePage",
		distancePage4MallShop : baseUrl + "/distancePage4MallShop",//按距离半径查询附近社区
		distanceList : baseUrl + "/distanceList",
		neighborPage : baseUrl + "/neighborPage",
		indexNew : baseUrl + "/indexNew",
		detail : baseUrl + "/detail",
		list : baseUrl + "/list",
		allList: baseUrl + "/allList",
	},
	message : {
		page : messageUrl + "/page",
		create : messageUrl + "/create",
		detail : messageUrl + "/detail",
		del : messageUrl + "/delete",
		update : messageUrl + "/update",
		toUpdate : messageUrl + "/toUpdate",
		managePage : messageUrl + "/manage/page",
		index : messageUrl + "/index",
		tagList : messageUrl + "/tagList", // 标签列表
		indexV1 : messageUrl + "/indexV1",// 新版-大喇叭主页
		getPraiseUserList : messageUrl + "/getPraiseUserList", // 查询一个社区动态的点赞人列表(参数：{id}
		newPage : messageUrl + "/newPage",
		list4HerInCommunity : messageUrl +"/list4HerInCommunity", //人个中心--分页查询她在一个社区发布的动态
	},
	join : {
		joinList : joinUrl + "/joinList",
		myList : joinUrl + "/myList",
		create : joinUrl + "/create",
		del : joinUrl + "/delete",
		list : joinUrl + "/list",
		isJoin : joinUrl + "/isJoin",
		face2community : joinUrl + "/face2community",
		hasJoin : joinUrl + "/hasJoin",
	},
	notice : {
		page : noticeUrl + "/page",
		create : noticeUrl + "/create",
		update : noticeUrl + "/update",
		toUpdate : noticeUrl + "/toUpdate",
		managePage : noticeUrl + "/manage/page",
		del : noticeUrl + "/delete",
		detail : noticeUrl + "/detail",
	},
	localnews : {
		page : localnewsUrl + "/page",
		detail : localnewsUrl + "/detail",
	},
	sign : {
		add : signsUrl + "/add",
		detail : signsUrl + "/detail",
	},
	addr : {
		findChildren : addrUrl + "/findChildren",
		isLast : addrUrl + "/isLast"
	},
	yellow : {
		page : yellowUrl + "/page",
		detail : yellowUrl + "/detail",
		search : yellowUrl + "/search",
	}
};
